﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlServer.Demo
{
    [Table(nameof(User))]
    public class User
    {
        [Key]
        public int Id { get; set; }
        [MinLength(6)]
        [MaxLength(16)]
        public string Name { get; set; }
        public string Password { get; set; }
        [MaxLength(128)]
        public string Email { get; set; }
        public DateTime InsertDate { get; set; }
    }
}
